# !/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :qiniu_files.py
# @Time      :2022/6/2 0002 14:05
# @Author    :何胜利

AccessKey = "_hjrFoy-qhvlYxSrlE9EQK7yTHW3UWW7jfpGDLBV"
SecretKey = "XQYxznCNZvEiaDNSoRbTs5E-O6xhtm1468tdCUzM"

from qiniu import Auth


def qiniu_token():
    # 构建鉴权对象
    q = Auth(AccessKey, SecretKey)
    bucket = "heshengli"
    token = q.upload_token(bucket)
    return token
